package xuesheng;

public class prize {
	public static double sum1(double number1, double number2) throws Exception{
		return (number1 + number2);
	}
	public static double sum(double number1, double number2) throws Exception{
		return sum1( number1,  number2);
	}
	public final static int x = 5000;
	public final static int y = 8000;

	public static double jiaoshui(double num)  {

		if (num > y) {
			num = num * 0.90;
		}
			
		if (num > x) {
			num = num * 0.97;
		}
		
		if (num < x) {
			System.out.println("不需要交税");
		}
		return num;
	}
}

